/** \file main.c
 */

/**
 * \mainpage Jogo em 2D Maceio Skateboard
 * \section pri Documentacao do codigo fonte
 * \subsection aut Autores: Evernton, Joilnen, Juliana
 */
#include <SDL/SDL.h>
#include <stdio.h>
#include "game.h"
#include "event.h"
#include "error_mens.h"
#include "treat.h"

/**
 * Principal funcao, inicio
 */
int main()
{
    Game *game = NULL;
    atexit(SDL_Quit);

    treat(CREATE_GAME, game, create_game(game));
    treat(GAME_MAIN_LOOP, game, game_main_loop(game));
    treat(DESTROY_GAME, game, destroy_game(game));

    SDL_Quit();
    return 0;
}

